package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.QShouyeMapper;
import com.ruoyi.system.domain.QShouye;
import com.ruoyi.system.service.IQShouyeService;
import com.ruoyi.common.core.text.Convert;

/**
 * 首页用值Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-06-24
 */
@Service
public class QShouyeServiceImpl implements IQShouyeService 
{
    @Autowired
    private QShouyeMapper qShouyeMapper;

    /**
     * 查询首页用值
     * 
     * @param qSid 首页用值主键
     * @return 首页用值
     */
    @Override
    public QShouye selectQShouyeByQSid(Long qSid)
    {
        return qShouyeMapper.selectQShouyeByQSid(qSid);
    }

    /**
     * 查询首页用值列表
     * 
     * @param qShouye 首页用值
     * @return 首页用值
     */
    @Override
    public List<QShouye> selectQShouyeList(QShouye qShouye)
    {
        return qShouyeMapper.selectQShouyeList(qShouye);
    }


    //查询首页各个统计值
    @Override
    public int selectJqznwhs( )
    {
        return qShouyeMapper.selectJqznwhs();
    }

    @Override
    public int selectJqznwhswjt()
    {
        return qShouyeMapper.selectJqznwhswjt();
    }

    @Override
    public int selectqImwhzs( )
    {
        return qShouyeMapper.selectqImwhzs();
    }

    @Override
    public float selectqImavethsc( )
    {
        return qShouyeMapper.selectqImavethsc();
    }

    @Override
    public float selectqRgavethsc( )
    {
        return qShouyeMapper.selectqRgavethsc();
    }


    @Override
    public int selectqRgwhzs( )
    {
        return qShouyeMapper.selectqRgwhzs();
    }

    /**
     * 新增首页用值
     * 
     * @param qShouye 首页用值
     * @return 结果
     */
    @Override
    public int insertQShouye(QShouye qShouye)
    {
        return qShouyeMapper.insertQShouye(qShouye);
    }

    /**
     * 修改首页用值
     * 
     * @param qShouye 首页用值
     * @return 结果
     */
    @Override
    public int updateQShouye(QShouye qShouye)
    {
        return qShouyeMapper.updateQShouye(qShouye);
    }

    /**
     * 批量删除首页用值
     * 
     * @param qSids 需要删除的首页用值主键
     * @return 结果
     */
    @Override
    public int deleteQShouyeByQSids(String qSids)
    {
        return qShouyeMapper.deleteQShouyeByQSids(Convert.toStrArray(qSids));
    }

    /**
     * 删除首页用值信息
     * 
     * @param qSid 首页用值主键
     * @return 结果
     */
    @Override
    public int deleteQShouyeByQSid(Long qSid)
    {
        return qShouyeMapper.deleteQShouyeByQSid(qSid);
    }
}
